package com.sihai.ehr.model.biz;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.sys.AuditStatus;
import com.sihai.ehr.model.sys.User;

import javax.persistence.*;

/**
 * @author wxn
 * @since 12-5-27 16:57
 *
 * 职务代理人审核表
 */
@Entity
@DiscriminatorValue("audit_duty_proxy")
public class DutyProxyAuditing extends AuditingBase {

    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "duty_proxy_id")
	private DutyProxy dutyProxy; /* 职务代理人 */

    private int who; /* 第几代理人(1-第一代理人,2-第二代理人,3-第三代理人) */

    public DutyProxy getDutyProxy() {
        return dutyProxy;
    }

    public void setDutyProxy(DutyProxy dutyProxy) {
        this.dutyProxy = dutyProxy;
    }

    public int getWho() {
        return who;
    }

    public void setWho(int who) {
        this.who = who;
    }
}
